package com.eduran.tuts.jfundamentals.model;

/**
 * Created by eduran on 15.10.2014.
 */
public class BreakTest {
    public static void main(String[] args) {
        int count;
        for (count = 1; count <= 10; count++) {
            if (count == 5) {
                System.out.printf("%d", count);
                break;
            }
            System.out.printf("%d", count);
        }
        System.out.printf("%nBroke out of loop at count = %d%n", count);
    }
}
